package com.windliven.spoc.modules.init.exception;


import com.windliven.spoc.modules.init.common.BizEnum;

/**
 * @author bysun
 */
public class BizException extends RuntimeException {

    private UserType type;

    public BizException() {

    }

    public BizException(UserType type, String message) {
        super(message);
        this.type = type;
    }

    public BizException(BizEnum bizEnum) {

    }

    public UserType type() {
        return type;
    }


    public enum UserType {
        ACCOUNT_AND_PASSWORD_IS_NULL,
        USER_AUTH_FAIL,
        USER_NOT_LOGIN,
        USER_NOT_FOUND
    }
}